package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName LoginController
 * @Author bsy
 * @Description TODO
 * @Date 2022/8/15 23:24
 * @Version 1.0
 */
@RestController
@RequestMapping("LoginController")
public class LoginController {
    @RequestMapping("/login")
    public String login(){
        System.out.println("controller开始执行");
        return "login success";
    }

    @RequestMapping("/user")
    public String user(){
        System.out.println("user开始执行");
        return "user loging";
    }
}
